package igz.fleaxy.video {
	/**
	 * ...
	 * @author Intelygenz | www.intelygenz.com
	 */
	public class NetStreamClient extends Object {

		protected var _OnMetaData:Function;
		protected var _OnCuePoint:Function;
		protected var _OnXMPData:Function;

		protected var _MetaDataInfo:MetaDataInfo;
		public function get $MetaDataInfo() : MetaDataInfo {
			return _MetaDataInfo;
		}
		protected var _CuePoint:CuePointInfo;
		public function get $CuePoint() : CuePointInfo {
			return _CuePoint;
		}
		protected var _XMPData:XMPDataInfo;
		public function get $XMPData() : XMPDataInfo {
			return _XMPData;
		}
		public function NetStreamClient(f_onMetaData:Function = null, f_onCuePoint:Function = null) {
			_OnMetaData = f_onMetaData;
			_OnCuePoint = f_onCuePoint;
		}

		public function onMetaData(p_info:Object) : void {
			if ( p_info!=null ) {
				_MetaDataInfo = new MetaDataInfo(p_info);
				if ( _OnMetaData != null ) {
					_OnMetaData();
				}
			}
		}

		public function onCuePoint(p_info:Object) : void {
			_CuePoint = new CuePointInfo(p_info);
			if ( _OnCuePoint != null ) {
				_OnCuePoint();
			}
		}

		public function onXMPData(p_info:Object) : void {
			_XMPData = new XMPDataInfo(p_info);
			if ( _OnXMPData != null ) {
				_OnXMPData();
			}
		}

	}

}